package com.itheima.method;

public class MethodDemo2 {
    public static void main(String[] args) {
        eat();
        stady();
    }
    public static void eat(){
        System.out.println("吃饭");
    }
    public static void sleep(){
        System.out.println("睡觉");
    }
    public static void stady(){
        sleep();
        System.out.println("学习");
    }
}
